package facade;

// 外观类 - 音频播放器
class AudioPlayerFacade {
    private AudioDecoder decoder;
    private AudioRenderer renderer;

    public AudioPlayerFacade() {
        this.decoder = new AudioDecoder();
        this.renderer = new AudioRenderer();
    }

    public void play(String audioFormat) {
        decoder.decode(audioFormat);
        renderer.render();
    }
}